.wrap{
  width: 350px;
  height: 310px;
  background-color: aqua;
}

.wrap span{
  color: red;
}
.wrap span::after{
  content: attr(data-a);
  display: block;
  color: black;
}


*{
  padding: 0;
  margin: 0;
  list-style:none;
}

.img-list{
  padding: 10px 10px 0;
  width: 300px;
  margin: 20px auto;
  background-color: #f40;
}
.img-list li{
  margin-bottom: 10px;
}